package org.lq.shopping.entity;

import java.io.Serializable;

/** 
* @author zyq1397860074@qq.com 
* @version 创建时间：2018年9月26日 上午11:55:45 
*
*/
public class ShopShippingAddress implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int address_id;    //地址id(主键)
	private int user_id;       //用户id
	private String location;   //所在地区
	private String detailed_address;  //详细地址
	private String receive_name;	  //收货人姓名
	private String receive_phone;	  //收货人电话
	private String receive_address;	  //收货人地址
	
	public int getAddress_id() {
		return address_id;
	}
	public void setAddress_id(int address_id) {
		this.address_id = address_id;
	}
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getDetailed_address() {
		return detailed_address;
	}
	public void setDetailed_address(String detailed_address) {
		this.detailed_address = detailed_address;
	}
	public String getReceive_name() {
		return receive_name;
	}
	public void setReceive_name(String receive_name) {
		this.receive_name = receive_name;
	}
	public String getReceive_phone() {
		return receive_phone;
	}
	public void setReceive_phone(String receive_phone) {
		this.receive_phone = receive_phone;
	}
	public String getReceive_address() {
		return receive_address;
	}
	public void setReceive_address(String receive_address) {
		this.receive_address = receive_address;
	}
	/**
	 * hashCode
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + address_id;
		result = prime * result + ((detailed_address == null) ? 0 : detailed_address.hashCode());
		result = prime * result + ((location == null) ? 0 : location.hashCode());
		result = prime * result + ((receive_address == null) ? 0 : receive_address.hashCode());
		result = prime * result + ((receive_name == null) ? 0 : receive_name.hashCode());
		result = prime * result + ((receive_phone == null) ? 0 : receive_phone.hashCode());
		result = prime * result + user_id;
		return result;
	}
	/**
	 * equals
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopShippingAddress other = (ShopShippingAddress) obj;
		if (address_id != other.address_id)
			return false;
		if (detailed_address == null) {
			if (other.detailed_address != null)
				return false;
		} else if (!detailed_address.equals(other.detailed_address))
			return false;
		if (location == null) {
			if (other.location != null)
				return false;
		} else if (!location.equals(other.location))
			return false;
		if (receive_address == null) {
			if (other.receive_address != null)
				return false;
		} else if (!receive_address.equals(other.receive_address))
			return false;
		if (receive_name == null) {
			if (other.receive_name != null)
				return false;
		} else if (!receive_name.equals(other.receive_name))
			return false;
		if (receive_phone == null) {
			if (other.receive_phone != null)
				return false;
		} else if (!receive_phone.equals(other.receive_phone))
			return false;
		if (user_id != other.user_id)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ShopShippingAddress [address_id=" + address_id + ", user_id=" + user_id + ", location=" + location
				+ ", detailed_address=" + detailed_address + ", receive_name=" + receive_name + ", receive_phone="
				+ receive_phone + ", receive_address=" + receive_address + "]";
	}
	
	
	
}
